import { post } from '@/libs/request'

/**
 * 查询历史测试报告
 */
const getResultList = (page: number, size: number) =>
  post<{
    list: T_ResultItem[]
    hasNext: boolean
    page: number
    size: number
    total: number
    totalPage: number
  }>('suan/result/list', { page, size })

/**
 * 删除测试报告
 */
const deleteResult = (id: number, typeCode: string) => post('suan/result/delete', { id, typeCode })

export { getResultList, deleteResult }
